<include file="Public/header" />
<title>管理员列表</title>
<style>
.wwprint{
	float:left;
}
.wprint{
	float:left;
	display:none;
}
.wl{
	float:right;
}
.wprint span{
	float:left;
}

@media print {
	.noprint {display: none; }
	.wprint{
		display:block;
	}
	.wwprint{
		display:none;
	}
	th,td{
		font-size:18px;
	}
	.print{
		width:375px;
	}
}
</style>
</head>
<body>
<div class="pd-20">
	 <form id="form2" action="<{:U('pickcollect')}>" name="form2">
	 <!--startprint-->
		<table class="table table-border table-bordered table-hover table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="4"> 拣货单号：<{$picklist_no}>
					</th>
				</tr>
				<tr class="text-c">
					<th width="">商品编号</th>
                    <th width="" class="print">商品名称</th>
					<th width="">总数量</th>
					<th width="">库位</th>
				</tr>
			</thead>
			<tbody id="goodslist">
				<volist name="Pickgoods_list" id="v">
					<tr class="text-c">
						<td class="goods_sn"><{$v.goods_no}></td>
                        <td class="goods_name"><{$v.goods_name}></td>
                        <td class="goods_count"><{$v.goods_count}></td>
						<td><{$v.storage_code}></td>
					</tr>
				</volist>
			</tbody>
		</table>
		<volist name="pickorder_list" id="val">
		<!-- <div style="page-break-after: always;"></div>   -->
		<table class="table table-border table-bordered table-hover table-bg noprint" style="margin-top:40px;">
			<thead>
				<tr>
					<th scope="col" colspan="8">
						<span class="wwprint">
							<span>订单编号：<{$val['order_no']}></span>
						</span>
						<span class="wprint">
							<span>订单编号：</span>
							<span><img width="175.3px" height="52.4px" class="" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text=<{$val['order_no']}>" alt="barcode"/></span>
						</span>
						
						<span class="wprint wl">
							<span>物流单号：</span>
							<span><img width="175.3px" height="52.4px" class="" src="__PUBLIC__/plugins/barcodegen/test_1D.php?text=<{$val['mailNo']}>" alt="barcode"/></span>
						</span>
					</th>
				</tr>
				<tr class="text-c">
					<th width="40">商品编号</th>
                    <th width="40">商品名称</th>
					<th width="40">数量</th>
					<th width="40">规格</th>
					<!-- <th width="40">申报价格</th> -->
					<th width="40">产销国</th>
					<!-- <th width="40">HSCODE</th> -->
				</tr>
			</thead>
			<tbody  id="goodslist">
				<volist name="val['goods']" id="vo">
					<tr class="text-c">
						<td><{$vo.goods_no}></td>
						<td><{$vo.goods_name}></td>
						<td><{$vo.goods_nums}></td>
						<td><{$vo.spec}></td>
						<!-- <td><{$vo.spec}></td> -->
						<td><{$vo.country_name.country_name}></td>
						<!-- <td><{$vo.hs_code}></td> -->
					</tr>
				</volist>			
			</tbody>
		
		</table>
		</volist>
		<!--endprint-->
		<button type="button" id="cpicklist" class="btn btn-success btn-sm mt noprint"  onClick="javascript:window.print()" >
			 打印配货单
		</button>
		<!--endprint-->
		<button type="button" id="printems" class="btn btn-success btn-sm mt noprint" >
			 打印面单
		</button>
	</form>
</div>

</body>
<script>
	var bagInboundInfoUrl="<{:U('Outbound/printorder_green')}>";
	$('#printems_sf').click(function(){
		$('input[name=sf]').val(0);
		$('#emsform').submit();
	});
	$('#printems').click(function(){
		var index=layer.open({
            type: 2,
            title: '打印面单',
            shadeClose: true,
            shade: 0.5,
            offset:['180px'],
            area: ['1020px', '335px'],
            content: '__MODULE__/Outbound/printorder_picklist/picklist_id/'+<{:I('id')}> //iframe的url
        });
		<!-- window.parent.showTab(bagInboundInfoUrl,'调拨单详情'); -->
	})
</script>
</html>